docs: Mention the GtkWidget.destroy vfunc
authorMatthias Clasen <mclasen@redhat.com>
Fri, 11 Jun 2021 14:11:53 +0000 (10:11 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 11 Jun 2021 14:11:53 +0000 (10:11 -0400)
Mention GtkWidget.destroy in the migration guide.

docs/reference/gtk/migrating-3to4.md

index ff2337e18f61aa52158ad47d4c2dc1911387d496..3779465b357df0f8ff4bd0d7862aaaea044445be 100644 (file)
@@ -243,6 +243,10 @@ in GTK 3, you can prepare for the switch by using `gtk_widget_destroy()`
 only on toplevel windows, and replace all other uses with
 `gtk_container_remove()` or `g_object_unref()`.
 
+### Stop using the GtkWidget.destroy vfunc
+
+Instead of implementing GtkWidget.destroy, you can implement GObject.dispose.
+
 ### Reduce the use of generic container APIs
 
 GTK 4 removes `gtk_container_add()` and `gtk_container_remove()`. While there